import java.util.Scanner;

public class a621 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		final int binary = 2;
		String input, output;
		int n;
		int result;
		
		while(sc.hasNext()) {
			input = sc.nextLine();
			n = Integer.parseInt(input);
			
			output = "";

			for(int i = 0; i <= n; i++) {
				result = (int)Math.pow(binary, i);
				output += "2^" + Integer.toString(i) + " = " + Integer.toString(result) + '\n';
			}
			output = output.substring(0, output.length() - 1);
			
			System.out.println(output);
		} // next
	}// main
}